QT -= gui

TEMPLATE = lib
DEFINES += APPCONFIG_LIBRARY

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

build_type =
CONFIG(debug, debug | release) {
    build_type = debug
} else {
    build_type = release
}
compile_type =
win32-msvc {
    contains(QT_ARCH, i386) {
        compile_type = msvc32
    } else {
        compile_type = msvc64
    }
}
# 1. 可执行文件
# 2. 自定义动态库
# 3. obj 中间文件
# 4. moc ui 中间文件
# 5. rcc 资源中间文件
# 6. ui 中间文件
DESTDIR         = $$PWD/../output_$$compile_type/$$build_type
OBJECTS_DIR     = $$PWD/../output_$$compile_type/tmp/obj
MOC_DIR         = $$PWD/../output_$$compile_type/tmp/moc
RCC_DIR         = $$PWD/../output_$$compile_type/tmp/rcc
UI_DIR          = $$PWD/../output_$$compile_type/tmp/ui

SOURCES += \
    appconfig.cpp

HEADERS += \
    AppConfig_global.h \
    appconfig.h

# Default rules for deployment.
unix {
    target.path = /usr/lib
}
!isEmpty(target.path): INSTALLS += target


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../hv/lib/release/ -lhv
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../hv/lib/debug/ -lhv

INCLUDEPATH += $$PWD/../hv/include/hv
DEPENDPATH += $$PWD/../hv/include/hv
